(() => {


    // 字符串
    let name: string = 'yejing'
    let addr: string = "guangzhou"
    let str: string = `hello ${name}`

    console.log(123, str);

    // 布尔
    let b: boolean = false;

    console.log(b);

    // 数组

    let arr: string[] = ['a', 'b', 'c'];
    let arr2: Array<number> = [2, 3, 4, 5, 6];

    // 枚举
    enum Color { Red, blue, yello }


    // 元祖
    let tu: [string, number] = ['name', 1];

    // any 和 unknown



    // let 和 const

    // 解构

    let input: [number, number] = [1, 2];
    let [first, second] = input;
    console.log(first); // outputs 1
    console.log(second); // outputs 2


    function f([first, second]: [number, number]) {
        console.log(first);
        console.log(second);
    }

    f(input);

    let o = {
        m: "foo",
        n: 12,
        o: "bar"
    };
    let { m, n } = o;

})()